﻿// JScript 文件
var imageurl="";
var href= location.href.toLowerCase();
//if(href.indexOf("/cn/")>-1)
//{
//   var str=href.split("/cn/");
//   if(str[1].indexOf("/")>-1)
//   {
//      imageurl="../";
//   }
//}
document.write("<div id=\"loadinfo\" style=\"border:#3883EA 1px solid;width:300px;height:40px;position:absolute;display:none;background-color: #ffffff;padding:2px 5px 5px 5px;z-index:9999;\">");
document.write("<div style=\"text-align: right\"><a href=\"javascript:void(0);\" onclick=\"loadHide();\"><img border=\"0\" height=\"19\" src=\""+imageurl+"images/loading_close.gif\" width=\"19\" /></a></div>  ");
document.write("<center id=\"loading\"><img alt=\"请稍等，页面正在载入...\" border=\"0\" src=\""+imageurl+"images/loading.gif\" />正在读取数据请稍候...</center> ");
document.write("<center id=\"loadErrinfo\" style=\"display: none;\"><img alt=\"错误\" border=\"0\" src=\""+imageurl+"images/error.gif\" />获取数据出错...请刷新页面重试</center> ");
document.write("<center id=\"loadTimeoutinfo\" style=\"display: none;\"><img alt=\"超时\" border=\"0\" src=\""+imageurl+"images/warning1.gif\" />获取数据超时...请刷新页面重试</center> ");
document.write(" </div> ");

if(typeof(AjaxPro)!="undefined")
{
    AjaxPro.timeoutPeriod = 60000;
    AjaxPro.onError = function(e) {var le = document.getElementById("loadErrinfo").style.display = e ? "block" : "none";document.getElementById("loading").style.display = e ? "none" : "block";};
    AjaxPro.onTimeout = function(t){document.getElementById("loadTimeoutinfo").style.display = t ? "block" : "none";document.getElementById("loading").style.display = t ? "none" : "block"; } ;
}
 function loadShow()
{
      var windowWidth, windowHeight; 
      var bodyheight=window.screen.availHeight ;
      if (self.innerHeight) {  // all except Explorer 
      windowWidth = self.innerWidth; 
      windowHeight = self.innerHeight; 
      } 
      else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode 
      windowWidth = document.documentElement.clientWidth; 
      windowHeight = document.documentElement.clientHeight; 
      } else if (document.body) { // other Explorers 
      windowWidth = document.body.clientWidth; 
      windowHeight = document.body.clientHeight; 
      } 
      document.getElementById("loadErrinfo").style.display="none";
      document.getElementById("loadTimeoutinfo").style.display="none";
      document.getElementById("loading").style.display="";
      var bodys=document.documentElement.scrollTop ;
	 document.getElementById('loadinfo').style.top= bodys +100+ 'px';
	 document.getElementById('loadinfo').style.left=(windowWidth -300)/2 + 'px';
     document.getElementById('loadinfo').style.display="";
     window.status ="正在搜索加载数据，请稍候..."
}

function loadHide()
{
 document.getElementById('loadinfo').style.display="none";
 window.status ="";
}